package com.qzxy.premiumhotelsystem.common.constant;

/**
 * ClassName: VipStatusConstant
 * Package: com.qzxy.premiumhotelsystem.constant
 * Description:
 *
 * @Author Qwh
 * @Create 2024/9/16 13:35
 * @Version 1.0
 */
public class VipStatusConstant {

    public static final String VIP_VALID = "有效";
    public static final String VIP_EXPIRED = "失效";

    // 方法：通过状态编号获取对应的状态描述
    public static String getStatusDescription(int status) {
        return switch (status) {
            case 1 -> VIP_VALID;
            case 2 -> VIP_EXPIRED;
            default -> throw new RuntimeException("未知的vip状态编号: " + status);
        };
    }

}
